﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;

namespace SelfMadeMillionaire.Core.Entities
{
    public class UserSession : BaseEntity
	{
        [Required]
        [StringLength(100)]
        public string SessionToken { get; set; }

        [StringLength(255)]
        public string DeviceToken { get; set; }

        [StringLength(50)]
        public string DeviceType { get; set; }

        public DateTime LastActivityDateTime { get; set; }

        public decimal? Lat { get; set; }
        public decimal? Lon { get; set; }

        public virtual CountryCode CountryCode { get; set; }
        public virtual Subscriber Subscriber { get; set; }
	}
}
